﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 作业文档
    /// </summary>
    public partial class TWorkDocument
    {
        /// <summary>
        /// 作业文档Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 库房Id
        /// </summary>
        public int? WhId { get; set; }
        /// <summary>
        /// 作业状态：0-待作业、1-作业中、2-已上架；3-已下架、4-已分拣；5-已完成
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 入库单Id
        /// </summary>
        public int? RelatedOrderId { get; set; }
        /// <summary>
        /// 单据类型Id
        /// </summary>
        public int? BillTypeId { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string BillTypeName { get; set; }
        /// <summary>
        /// 外部ERP单据类型编码
        /// </summary>
        public string ErpbillTypeCode { get; set; }
        /// <summary>
        /// 计划数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? PlanQty { get; set; }
        /// <summary>
        /// 分配数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? AllocateQty { get; set; }
        /// <summary>
        /// 下架完数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? PickedQty { get; set; }
        /// <summary>
        /// 上架完数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? PutawayQty { get; set; }
        /// <summary>
        /// 已分拣数量，或配料的数量
        /// </summary>
        [Column(TypeName = "decimal(18,2)")]
        public decimal? SortedQty { get; set; }
        /// <summary>
        /// 打印次数
        /// </summary>
        public int? PrintTimes { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 工作地点，一般为出入库月台
        /// </summary>
        public string WorkLocation { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
    }
}
